package com.lcredu.aop.aspectj;


import org.springframework.stereotype.Component;

/**
 * @author 黎长容
 * @date 2025-07-15 12:28
 */
@Component
public class SmartDog implements SmartAnimal {
    @Override
    public int getSum(int num1, int num2) {
//        int i = 10 / 0;
        System.out.println("方法内部打印result=" + (num1 + num2));
        return num1 + num2;
    }

    @Override
    public int getSub(int num1, int num2) {
        return num1 - num2;
    }
}
